#include <iostream>
#include <string>
#include "fmt/format.h"
#include "thirdparty/string_helper.hpp"
using namespace std;

void printStatistics(const std::string &s);
int main()
{

    std::string s1{"cat"};
    std::string s2;
    string s3;

    s2 = s1;
    s3.assign(s1);

    s2.at(0) = 'r';

    printStatistics(s3);
    std::cout << "\n";
    auto ut{string_helper::to_upper(s1)};
    std::cout << ut << "\n";
    return 0;
}

void printStatistics(const std::string &s)
{
    std::cout << fmt::format("capacity: {}\nmaxsize: {}\nsize: {}\nempty: {}",
                             s.capacity(), s.max_size(), s.size(), s.empty());
}